package com.steel.yfmall.cloud.assistant.oms.impl;

import com.steel.yfmall.cloud.assistant.oms.MasterOrderGoodsService;
import com.steel.yfmall.cloud.assistant.oms.mapper.MasterOrderGoodsMapper;
import com.steel.yfmall.cloud.assistant.po.oms.MasterOrderGoods;
import com.steel.yfmall.cloud.assistant.po.oms.MasterOrderGoodsExample;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author 龙飞
 * @version 1.0
 * @since 2021/01/11 星期一 16:40
 */

@Service
public class MasterOrderGoodsServiceImpl implements MasterOrderGoodsService {

    @Override
    public List<MasterOrderGoods> selectByMasterOrderSn(String masterOrderSn) {
        MasterOrderGoodsExample masterOrderGoodsExample = new MasterOrderGoodsExample();
        masterOrderGoodsExample.createCriteria().andMasterOrderSnEqualTo(masterOrderSn);
        return masterOrderGoodsMapper.selectByExample(masterOrderGoodsExample);
    }

    @Resource
    private MasterOrderGoodsMapper masterOrderGoodsMapper;

}
